<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColSortToCommentTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('philanthropy', function(Blueprint $table)
        {
            $table->integer('sort')->default(0)->comment('排序');
        });

        Schema::table('en_philanthropy', function(Blueprint $table)
        {
            $table->integer('sort')->default(0)->comment('排序');
        });

        Schema::table('environmental_protection_knowledge', function(Blueprint $table)
        {
            $table->integer('sort')->default(0)->comment('排序');
        });

        Schema::table('en_environmental_protection_knowledge', function(Blueprint $table)
        {
            $table->integer('sort')->default(0)->comment('排序');
        });

        Schema::table('achievement', function(Blueprint $table)
        {
            $table->integer('sort')->default(0)->comment('排序');
        });

        Schema::table('en_achievement', function(Blueprint $table)
        {
            $table->integer('sort')->default(0)->comment('排序');
        });

        Schema::table('comment', function(Blueprint $table)
        {
            $table->integer('sort')->default(0)->comment('排序');
        });

        Schema::table('en_comment', function(Blueprint $table)
        {
            $table->integer('sort')->default(0)->comment('排序');
        });

        Schema::table('project_cases', function(Blueprint $table)
        {
            $table->integer('sort')->default(0)->comment('排序');
        });

        Schema::table('en_project_cases', function(Blueprint $table)
        {
            $table->integer('sort')->default(0)->comment('排序');
        });

        Schema::table('charitable_activities', function(Blueprint $table)
        {
            $table->integer('sort')->default(0)->comment('排序');
        });

        Schema::table('en_charitable_activities', function(Blueprint $table)
        {
            $table->integer('sort')->default(0)->comment('排序');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
